iT邦幫忙

第 11 屆 iThome 鐵人賽

DAY 12
0
IoT

簡簡單單的MQTT入門系列 第 12

MQTT Control Packet type

  • 分享至 

  • xImage
  •  

之前講到的PUBREC、PUBREC、PUBREL、PUBCOMP等等,都是MQTT控制封包類型的一種,總共定義了16種。

Server:MQTT Broker
Client:發佈者、訂閱者

名稱 流向 說明
Reserved 0 Forbidden 保留
CONNECT 1 Client to Server Connection request
CONNACK 2 Server to Client Connect acknowledgment
PUBLISH 3 Client to Server or Server to Client Publish message
PUBACK 4 Client to Server or Server to Client Publish acknowledgment (QoS 1)
PUBREC 5 Client to Server or Server to Client Publish received (QoS 2 delivery part 1)
PUBREL 6 Client to Server or Server to Client Publish release (QoS 2 delivery part 2)
PUBCOMP 7 Client to Server or Server to Client Publish complete (QoS 2 delivery part 3)
SUBSCRIBE 8 Client to Server Subscribe request
SUBACK 9 Server to Client Subscribe acknowledgment
UNSUBSCRIBE 10 Client to Server Unsubscribe request
UNSUBACK 11 Server to Client Unsubscribe acknowledgment
PINGREQ 12 Client to Server PING request
PINGRESP 13 Server to Client PING response
DISCONNECT 14 Client to Server or Server to Client Disconnect notification
AUTH 15 Client to Server or Server to Client Authentication exchange

上一篇
Qos(Quality of Service)
下一篇
MQTT v5.0和v3.11的差異
系列文
簡簡單單的MQTT入門23
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言